def is_prime(n):
    if n <= 1:
        return False
    for i in range(2, int(n**0.5) + 1):
        if n % i == 0:
            return False
    return True

s = input()
S = s.split()
number =" "
for i in S:
    if i=="zero" :
        number+="0"
    if i=="one" :
        number+="1"
    if i=="two" :
        number+="2"
    if i=="three" :
        number+="3"
    if i=="four" :
        number+="4"
    if i=="five" :
        number+="5"
    if i=="six" :
        number+="6"
    if i=="seven" :
        number+="7"
    if i=="eight" :
        number+="8"
    if i=="nine" :
        number+="9"
        
print(number)

